package main

import (
	"fishDemo/common"
	"github.com/gin-gonic/gin"
	_ "github.com/go-sql-driver/mysql"
)

func main() {
	go common.SetAndGet()

	r := gin.Default()
	//加载静态资源
	r.Static("/static", "./static")
	//加载静态页面
	r.LoadHTMLGlob("xiaoliyuUI/*")
	//服务器端口
	r = CollecRouter(r)

	r.Run(":8082")
}
